package com.jiang.action;

import com.opensymphony.xwork2.ActionSupport;

public class ChkAction extends ActionSupport {

	private static final long serialVersionUID = -5945871868652153269L;
	private String[] chk; // 注意名字要对应上 并且要getter/setter

	public String[] getChk() {
		return chk;
	}

	public void setChk(String[] chk) {
		this.chk = chk;
	}

	@Override
	public String execute() throws Exception {

		for (int i = 0; i < chk.length; i++) {
			System.out.println(chk[i]);
		}

		return NONE; // 无需跳转，只有这个不需要配置result
	}
}
